package com.second.app.thread.join.test;

/**
 * @author gyz
 * @date 2021/1/28 9:57
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        int count = 0;
        while (true) {
            count++;
            System.out.println(Thread.currentThread().getName() + ":" + System.currentTimeMillis());
            if (count == 10) {
                System.out.println(Thread.currentThread().getName() + ":退出了");
                break;
            }

        }
    }
}
